<template>
  <div>
    <h3 style="margin-bottom:10px;">添加轮播</h3>
    <el-form label-width="60px" @submit.native.prevent="save">
      <el-form-item label="名称">
        <el-input v-model="form.AdTitle"></el-input>
      </el-form-item>
      <el-form-item label="图组">
        <el-button type="primary" size="small" @click="form.items.push({})">
          <i class="el-icon-plus"></i>添加图片
        </el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" native-type="submit">立即创建</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        itmes: []
      }
    };
  }
};
</script>